<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<!-- 
<%
	java.util.ArrayList<model.Board> list = (java.util.ArrayList<model.Board>)request.getAttribute("boardlist");
	
	for(model.Board board : list)
		out.print(board);

%>
 -->
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<table border=1>
	<tr>
		<td>num</td>
		<td>name</td>
		<td>subject</td>
		<td>content</td>
		<td>file</td>
		<td>re_ref</td>
		<td>re_lev</td>
		<td>re_seq</td>
		<td>readcount</td>
		<td>regdate</td>
	</tr>
	<c:forEach var="board" items="${requestScope.boardlist}">
	<tr>
		
		<td>${board.num}</td>
		<td>${board.name}</td>
		<td><c:if test="${board.re_lev>0}">
			$nbsp;$nbsp;$nbsp;$nbsp;$nbsp;
			</c:if>
			<a href="./BoardDetailAction.bo?num=${board.num}">
		${board.subject}</a></td>
		<td>${board.content}</td>
		<td>${board.file}</td>
		<td>${board.re_ref}</td>
		<td>${board.re_lev}</td>
		<td>${board.re_seq}</td>
		<td>${board.readcount}</td>
		<td>${board.regdate}</td>
	</tr>
	</c:forEach>
</table>
<div>글의 개수 : ${requestScope.listcount} </div>
<div>	<span style="color:red">${requestScope.startpage}</span>
		${requestScope.endpage}
</div>

</body>
</html>